'''
Descripttion: 
version: 
Author: Zhang Lingxin
Date: 2023-05-30 21:03:27
LastEditors: Zhang Lingxin
LastEditTime: 2023-05-30 21:32:31
'''
from rest_framework import serializers

from question.models import Choice, Fill, Judge, Program, Text


class ChoiceSerializer(serializers.ModelSerializer):
    class Meta:
        model = Choice
        fields = '__all__'


class FillSerializer(serializers.ModelSerializer):
    class Meta:
        model = Fill
        fields = '__all__'


class JudgeSerializer(serializers.ModelSerializer):
    class Meta:
        model = Judge
        fields = '__all__'


class ProgramSerializer(serializers.ModelSerializer):
    class Meta:
        model = Program
        fields = '__all__'

class TextSerializer(serializers.ModelSerializer):
    class Meta:
        model = Text
        fields = '__all__'